/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package serveur;

import java.io.*;


/**
 *
 * @author vargasch
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        int numport =  13038;
        String nomfich = "bd.data";

        Chat chat = new Chat();
        try  {
            FileInputStream f = new FileInputStream(nomfich);
            ObjectInputStream in = new ObjectInputStream(f);

            chat = (Chat) in.readObject();
            f.close();

        } catch (Exception e)  {
        }
        TcpServeur serv = new TcpServeur ( numport, chat );
    }

}
